package club.zhanpy.service.impl;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import club.zhanpy.dao.UserDao;
import club.zhanpy.entity.User;
import club.zhanpy.service.UserService;


@Service("userServiceImpl")
public class UserServiceImpl implements UserService {
	@Autowired	
	private UserDao userDao;

    public User getUserById(int userId) {
        return userDao.selectByPrimaryKey(userId);
    }
}